package com.study.service;

import com.study.apect.DataSourceSign;
import com.study.config.DataSourceEnums;
import com.study.dao.LoggerMapper;
import com.study.entity.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author : zhuyanpeng.zhuyanpeng
 * @Description: :
 * @date :Create in  2019/9/11- 10:31
 * @Version: V1.0
 * @Modified By:
 **/
@Service
public class LoggerService {

    @Autowired
    LoggerMapper loggerMapper;

    @DataSourceSign(DataSourceEnums.SECOND)
    public void insert(Logger logger) {
        loggerMapper.insert(logger);
    }
}
